package com.jiahao.material.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Warehouseing {

    @TableId(value = "id",type = IdType.UUID)
    private String id;

//    订单号
    @TableField(fill = FieldFill.INSERT)
    private String wcode;

    private String supplierId;
    private String materialId;
    private int count;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    private String manager;
    private String warehouseId;
    private String remarks;
    private String status;

    /**
     * 00:表示供应室审核失败
     * 01:表示供应商审核成功
     * 02:表示供应商审核中
     */
    private String supplierStatus;
}

